package com.guli.ucenter.service;

import com.guli.ucenter.entity.UcenterMember;
import com.baomidou.mybatisplus.extension.service.IService;
import com.guli.ucenter.entity.vo.LoginCodeVO;
import com.guli.ucenter.entity.vo.LoginPasswordVO;
import com.guli.ucenter.entity.vo.MemberInfoVO;
import com.guli.ucenter.entity.vo.RegisterMemberVO;

/**
 * <p>
 * 会员表 服务类
 * </p>
 *
 * @author zxc
 * @since 2023-04-13
 */
public interface UcenterMemberService extends IService<UcenterMember> {
    /**
     * 根据手机号和密码，来登录用户member
     * @param loginPasswordVO
     * @return
     */
    String loginByPassword(LoginPasswordVO loginPasswordVO);

    /**
     * 根据手机号和验证码，来登录用户member
     * @param loginCodeVO
     * @return
     */
    String loginByCode(LoginCodeVO loginCodeVO);

    /**
     * 注册用户
     * @param memberVO
     * @return
     */
    boolean registerMember(RegisterMemberVO memberVO);

    /**
     * 根据会员id，去获取当前会员详细信息
     * @param memberId
     * @return
     */
    MemberInfoVO getMemberInfo(String memberId);

    /**
     * 根据微信id/openId，来查询该用户数据
     * @param openId
     * @return
     */
    UcenterMember getMemberByOpenId(String openId);

    /**
     * 统计某天的会员注册人数
     * @param day
     * @return
     */
    Integer countRegisterMembers(String day);
}
